package com.zr.myorder.pojo;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created by star on 2019/7/4.
 */
@Data
public class UserRepayUpdateVo {
//    @NotNull(message = "注册表id不能为空")
    private Integer loginId;//注册表外键
    @NotBlank(message = "修改时,银行卡账号不能为空")
    private String bankCardAccount;//银行卡账号
    @NotNull(message = "修改时,开户行不能为空")
    private Integer openingBank;//开户行
    @NotBlank(message = "修改时,手机号不能为空")
    @Pattern(regexp = "^(((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(16[6])|(17[0135678])|(18[0-9])|(19[89]))\\d{8})$", message = "手机号格式错误")
    private String bankPhone;//银行手机号
}
